﻿using GrainManage.Data.Model;
using GrainManage.Data.Model.Table;
using System.Collections.Generic;

namespace GrainManage.Core.Service.Interfaces
{
    public interface IDistrictService
    {
        DistrictTable Get(int districtID);

        List<DistrictTable> Search(string name, IPageable page, ICountable records);

        DistrictTable GetFather(int districtID);

        List<DistrictTable> GetChild(int districtID, IPageable page, ICountable records);

        List<DistrictTable> GetDownwardDistrict(int districtID, int depth, IPageable page, ICountable records);

        List<DistrictTable> GetUpwardDistrict(int districtID, int depth, ICountable records);
    }
}
